package com.woniuxy.direct.controller;

import com.woniuxy.direct.service.DirectService;
import com.woniuxy.po.TopicMail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 马宇航
 * @Description: TODO
 * @DateTime: 22/12/29/0029 16:22
 * @Component: 成都蜗牛学苑
 **/
@Controller
public class DirectController {
    @Autowired
    DirectService directService;
    @RequestMapping("direct")
    @ResponseBody
    public void send(@ModelAttribute("mail") TopicMail topicMail){
        directService.send(topicMail);
    }
}
